import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

const store = new Vuex.Store({
	//定义状态
	state:{
		author:"卫志强",
		isLogin:"",
	},
	mutations:{
		newAnother(state,msg){
			state.another = msg;
		},
		isLogin(state,msg){
			state.isLogin = msg;
			localStorage.setItem("isLogin",msg);
		}
	}
})

export default store
